package com.example.demo.controller;

import com.example.demo.service.AnalysisService;
import com.example.demo.service.impl.AbstractAnalysisService;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AnalysisController {



    @GetMapping("/findFace")
    private String findFace(String company){
        AnalysisService analysisService = AbstractAnalysisService.getService(company);
        return analysisService.findFace();
    }

    @GetMapping("/findMotorVehicle")
    private String findMotorVehicle(String company){
        AnalysisService analysisService = AbstractAnalysisService.getService(company);
        return analysisService.findMotorVehicle();
    }
}
